package com.mf.all.entity.req.basic;

import java.io.Serial;

import com.mf.all.groups.GroupsAddInterface;
import com.mf.all.groups.GroupsUpdateInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 字典数据提交
 *
 * @date 2025-04-02 22:36:47
 */
@Data
public class ReqDic implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "字典编号")
    @NotBlank(message = "字典编号不能不空")
    private String dicLabel;
    @NotBlank(message = "字典值不能不空")
    @Schema(description = "字典值")
    private String dicValue;
    @Schema(description = "级联父ID")
    private Integer pid;
    @Schema(description = "显示顺序(越大越前)")
    private Integer sort;
    @Schema(description = "状态,1启用0禁用")
    private Integer status;
    @Schema(description = "所属部门")
    private Integer deptId;
    @Schema(description = "备注")
    private String remark;
    @NotNull(message = "id不能为空", groups = {GroupsUpdateInterface.class})
    @Null(message = "id必须为空", groups = {GroupsAddInterface.class})
    private Integer id;
}
